<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        var str1 = "it|bai|zhan";
        console.log(str1.split("|"));  //["it", "sxt", "baizhan"]

        var str2 = "it|bai|kh|lk";
        console.log(str2.split(" "));

        /*'it|sxt|bz'.split('|', 0) // []
        'it|sxt|bz'.split('|', 1) // ["it"]
        'it|sxt|bz'.split('|', 2) // ["it", "sxt"]
        'it|sxt|bz'.split('|', 3) // ["it", "sxt", "bz"]
        'it|sxt|bz'.split('|', 4) // ["it", "sxt", "bz"]  */

        var name3="itbahizhancxyuan";
        console.log(name3.split(""));

    </script>
</body>

</html>